#include "Config.h"
#include "ConfigScript.h"
#include "Cfg.h"

ConfigScript::ConfigScript(Cfg * cfg)
{
	class_add<Cfg>("Cfg");
	class_def<Cfg>("setFree", &Cfg::setFree);
	class_def<Cfg>("setTcpPort", &Cfg::setTcpPort);
	class_def<Cfg>("setDataDatabase", &Cfg::setDataDatabase);
	class_def<Cfg>("setPlatDatabase", &Cfg::setPlatDatabase);
	class_def<Cfg>("setObjectDatabase", &Cfg::setObjectDatabase);
	class_def<Cfg>("setHttpPort", &Cfg::setHttpPort);
	class_def<Cfg>("setReportPath", &Cfg::setReportPath);
	set("cfg", cfg);
}